using System;

/// <summary>
/// namespace for spark models
/// </summary>
namespace Blogger.Models.Spark
{
	using System.Collections.Generic;

	public class Movie
	{
		public static List<Movie> RetriveDataSet(){

			var random = new System.Random (DateTime.Now.Millisecond);
			var movies = new List<Movie> ();

			for (var i=0; i<10; i++) {
				var mv = new Movie () { 
					ID = System.Guid.NewGuid().ToString(),
					Title = System.IO.Path.GetRandomFileName(),
					ReleaseDate = DateTime.Now.AddDays(- random.Next(365)),
					Price = random.NextDouble()
				};

				movies.Add (mv);
			}

			return movies;
		}

		public string ID { get; set;}
		public string Title { get; set;}
		public DateTime ReleaseDate { get; set;}
		public string Genre { get; set;}
		public double Price { get; set;}
	}
}

